﻿<%@ Page Language="C#" MasterPageFile="~/adm-Master.Master" AutoEventWireup="true" CodeBehind="Payment.aspx.cs" Inherits="BookStore.admin.Payment" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="PageName">Payment Manager</div>
    
<asp:Panel ID="pnView" runat="server">

<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" 
                onclick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" 
                onclick="lbtRefreshB_Click">Refesh</asp:LinkButton>
        </li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">
            Back</a> </li> 
    </ul>
</div>
    <asp:GridView ID="gvPayment" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BorderWidth="1px" Width="100%" 
        onrowdeleting="gvPayment_RowDeleting" 
        onselectedindexchanging="gvPayment_SelectedIndexChanging" 
        onpageindexchanging="gvPayment_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="paymentID" HeaderText="paymentID" />
            <asp:BoundField DataField="paymentName" HeaderText="paymentName" />
            <asp:BoundField DataField="description" HeaderText="description" />
            <asp:CommandField ShowDeleteButton="True" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddB" runat="server" 
                onclick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server" 
                onclick="lbtRefreshB_Click">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
    <tr> 
        <td class="Control" colspan="2">
            <ul>
                <li>
                    <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server" 
                        onclick="lbtUpdateT_Click">Save</asp:LinkButton>
                </li> 
                <li> 
                    <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" 
                        CausesValidation="False" onclick="lbtBack_Click">Back</asp:LinkButton>
                </li> 
            </ul>
        </td> 
    </tr>
    <tr> 
    <th> 
        &nbsp;</th>
    <td>
       <asp:TextBox ID="txtpaymentID" runat="server" CssClass="Text" Visible="False"></asp:TextBox>
    </td>
     </tr>
    <tr> 
       <th> 
            <asp:Label ID="lblpaymenName" runat="server" Text="PaymentName :"></asp:Label>
       </th>
       <td>
            <asp:TextBox ID="txtPaymentName" runat="server" CssClass="Text" ></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtPaymentName" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
       </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lbldescription" runat="server" Text="Description :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtdescription" runat="server" CssClass="Text" Height="69px" 
                TextMode="MultiLine" Width="392px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtdescription" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
        </td>
     </tr>
     </tr __designer:mapid="248">
    <tr>
        <td class="Control" colspan="2">
            <ul>
                <li>
                    <asp:LinkButton ID="lbtSave" runat="server" CssClass="uupdate" OnClick="lbtUpdateT_Click">Save</asp:LinkButton>
                </li>
                <li>
                    <asp:LinkButton ID="lbtBack" runat="server" CausesValidation="False" 
                        CssClass="uback" onclick="lbtBack_Click">Back</asp:LinkButton>
                </li>
            </ul>
        </td>
    </tr>
</table>
</asp:Panel>
</asp:Content>
